package com.company.linkedList;

public class FindNode {



    public boolean hasSameNode(ListNode l1,ListNode l2){
        ListNode tail1=l1;
        while (tail1.next!=null){
            tail1 = tail1.next;
        }

        ListNode tail2=l2;
        while (tail2.next!=null){
            tail2 = tail2.next;
        }
        return tail1==tail2;
    }
    public ListNode findSameNode(ListNode l1,ListNode l2){
        return null;



    }
}
